<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/reset.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style type="css/text">
      #footer{margin: 10px;}
      #footer p{margin-left:10px;margin-right:10px;}
    </style>
</head>
<body>
<div id="wrap" class="flex-wrap flex-vertical">
      <header id="header" class="aui-bar aui-bar-nav">
        <a class="aui-pull-left" tapmode="hover" onclick="api.closeWin();">
           <span class="aui-iconfont aui-icon-left"></span>
        </a>
         <div class="aui-title">同步数据</div>
      </header>
       <div id="main" class="flex-con">

       </div>
       </footer>
  </div>

</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script trpe="text/javascript">
  apiready =function(){
     //$api.fixStatusBar($api.dom('header'));
    //$api.text($api.dom('#connectionType'),'网络环境:'+api.connectionType);
     init();
  };

 function init(){
   api.openFrame({
       name: 'main-frame',
       url: '../html/main-frame.html',
       bounces: false,
       rect: {
           x: 0,
           y: $api.dom('header').offsetHeight,
           w: api.winWidth,
           h: $api.dom('#main').offsetHeight
       }
    });
 };


</script>
</html>
